<?php /* Smarty version 2.6.18, created on 2016-12-12 15:49:36
         compiled from adjust/m.adjust.add.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--头部 end--> 
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
    <form class="form-horizontal" role="form" action="" method="post">
     
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">老师:</label>
        <div class="col-sm-10">
          <select class="form-control" id="s1" onchange="a()" name="from_staff">
			  <option>请选择</option>
			  <?php $_from = $this->_tpl_vars['data_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
			  <option value="staff_<?php echo $this->_tpl_vars['key']; ?>
"><?php echo $this->_tpl_vars['value']['name']; ?>
</option>
			  <?php endforeach; endif; unset($_from); ?>
		 </select>
        </div>
      </div>
        <?php $_from = $this->_tpl_vars['data_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
        <div class="form-group tea" id="staff_<?php echo $this->_tpl_vars['key']; ?>
" style="display:none">
            <label class="col-sm-4 control-label text-right">
                班级学科：
            </label>

            <div class="input-group col-sm-4 col-xs-12">
                <?php $_from = $this->_tpl_vars['value']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
                <label class="choice"><input type="checkbox" name="pids[]" value="<?php echo $this->_tpl_vars['k']; ?>
"> <?php echo $this->_tpl_vars['v']; ?>
</label>
                <?php endforeach; endif; unset($_from); ?>
            </div>
        </div>
        <?php endforeach; endif; unset($_from); ?>

       
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">新科任:</label>
        <div class="col-sm-10">
          <select class="form-control" name="to_staff">
		   <?php $_from = $this->_tpl_vars['staff_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
				  <option value="<?php echo $this->_tpl_vars['value']['staff_id']; ?>
"><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</option>
		   <?php endforeach; endif; unset($_from); ?>
		  </select>
        </div>
      </div>
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">启用时间：</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="datepicker" name="start_time" value="<?php echo $this->_tpl_vars['start_time']; ?>
">
        </div>
      </div>
      <div class="form-group text-center">
        <button type="submit" class="btn btn-primary" style="width:85%">确定</button>
      </div>
    </form>
  </div>
</div>
<!--container
  <?php $_from = $this->_tpl_vars['data_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
      <div class="form-group classdemo1" id="zhang">
        <label for="inputEmail3" class="col-sm-2 control-label">班级学科:</label>
        <div class="col-sm-10" id="class">
          <?php $_from = $this->_tpl_vars['value']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
			<label class="choice"><input type="checkbox" name="pids[]" value="<?php echo $this->_tpl_vars['k']; ?>
"> <?php echo $this->_tpl_vars['v']; ?>
</label>
		  <?php endforeach; endif; unset($_from); ?>
        </div>
      </div>
      <?php endforeach; endif; unset($_from); ?>
  end-->
<!--主体部分  end--> 
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function(){
        $(".tea").hide();
    });
    function a()
    {
        $(".tea").hide();
        var val = $("#s1").val();
        $("#"+val).show();
    }
</script>
<!--日历--> 
<script>
  $(function() {
    $( "#datepicker" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
	
	$( "#datepicker2" ).datepicker({
		 
        changeMonth: true,
        changeYear: true
	  
    });
  });
  </script>


